package com.ideaaedi.log4j2.defender.strategy;

import org.springframework.stereotype.Component;

/**
 * (non-javadoc)
 *
 * @author JustryDeng
 * @since 2021/7/25 3:15:30
 */
@Component("demoDefenderStrategy")
public class DemoDefenderStrategy implements DefenderStrategy{
    @Override
    public String category() {
        return "name";
    }
    
    @Override
    public int retainPrefixCount() {
        return 1;
    }
    
    @Override
    public int retainSuffixCount() {
        return 1;
    }
    
    @Override
    public char replaceChar() {
        return '$';
    }
}
